<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2019/1/12
 * Time: 18:06
 */
$pro= new swoole_process(function (swoole_process $pro){
    $pro->exec("/usr/bin/php",[__DIR__."/../server/http_server.php"]);
},false);
$pid=$pro->start();
echo $pid.PHP_EOL;

swoole_process::wait();//回收子进程